﻿@using MobileTrack.Core;

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@this.ViewBag.Title</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    @Styles.Render("~/Content/themes/custom-theme/css", "~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/global")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/noty")
</head>
<body>
    <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title">@this.Html.ActionLink(" ", "Index", "Home", null, new { alt = "MobileTrack", title = "MobileTrack" })</p>
                </div>
                <div class="float-right">
                    <section id="login">
                        @this.Html.Partial("_LoginPartial")
                    </section>
                @if (this.User.Identity.IsAuthenticated)
                {
                    <nav>
                        <ul id="menu">
                            <li>@this.Html.ActionLink("IMEI", "Index", "Imeis")</li>
                            <li>@this.Html.ActionLink("Seguimiento", "Index", "Seguimientos")</li>
                            <li>@this.Html.ActionLink("Abono", "Index", "Abonos")</li>
                        @if (this.User.IsInRole(Constants.AdministradorRole))
                        {
                            <li>@this.Html.ActionLink("Gestión de Usuarios", "ManageUsers", "Admin")</li>
                        }
                        </ul>
                    </nav>
                }
                </div>
            </div>
        </header>
    <div id="body">
        <section class="content-wrapper main-content clear-fix">
            @this.RenderBody()
        </section>
    </div>
    <footer>
        <div class="content-wrapper">
            <div class="float-left">
                <p>&copy; @DateTime.Now.Year - MobileTrack</p>
            </div>
        </div>
    </footer>
    @this.RenderSection("scripts", required: false)
</body>
</html>
